package com.qing.apple.filter.demo02.formatter;

import com.qing.apple.filter.bean.Apple;

public class AppleFancyFormatter implements AppleFormatter{
	@Override
	public String accept(Apple apple) {
		String characteristic=apple.getWeight()>150?"重量合格":"重量不合格";
		return "苹果 颜色："+apple.getColor()+characteristic;
	}
}
